package org.csmz.xg2333;

import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;

public class Example11 {
    public static void main(String[] args){
        try(FileReader reader = new FileReader("src\\File\\example.txt");) {
            int c;
            while ((c = reader.read()) != -1){
                System.out.print((char) c);
        }
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
